import request from '@/utils/axios';
import Course from "@/api/module/course";

interface IResponseType<P = {}> {
    code?: number;
    msg: string;
    data: P;
}

// @ts-ignore
export const page = (course : Course)=>{
    return request<IResponseType>({
        url: '/myCourse/page',
        method: 'post',
        data: course,
        headers: {
            'Content-Type': 'application/json' // 设置默认的请求头
        }
    });
}

export default { page };